﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using LeadVinaglue.Models.ViewPages;
using LeadVinaglue.Models;

namespace LeadVinaglue.Repository
{
    public class RoleManagementRepository : BaseManagementRepository
    {
        public RoleManagementModel GetModel(string pageType, string roleName, int id)
        {
            RoleManagementModel model = new RoleManagementModel();

            model.HeaderView = GetHeader();
            model.MenuItem = GetMenuItems(roleName, pageType);
            model.ListRole = new Repository.RoleRepository().GetAllRoles();

            return model;
        }

    }
}